package com.gl.saasservice.repository;

import com.gl.saasservice.entity.CommunityHouseUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author hikari
 * @since 2021-05-25
 */
@Repository
public interface CommunityHouseUserRepository extends JpaRepository<CommunityHouseUser, Long>, JpaSpecificationExecutor<CommunityHouseUser> {
    List<CommunityHouseUser> findByMobile(String mobile);
    List<CommunityHouseUser> findByCommunityHouseIdAndStatus(String id,Integer status);
}
